package com.xayy.scheduled.enums;

import lombok.Getter;

@Getter
public enum AssessTaskType {
    NORMAL("1","设备调度"),
    PRODUCE("2","分系统调度"),
    ;
    public String	value;
    public String	label;
    AssessTaskType(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public static AssessTaskType parseVal(String value){
        AssessTaskType[] enums = AssessTaskType.values();
        for(AssessTaskType s : enums){
            if(s.getValue().equals(value)){
                return s;
            }
        }
        return null;
    }
}
